package cn.tedu.kcircle.passport.dao.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * 用户的实体类
 *
 * @author java@tedu.cn
 * @version 3.0
 */
@Data
@TableName("account_user")
public class UserDO implements Serializable {
    @TableId(type= IdType.AUTO)
    private Long id;
    private String username;
    private String signature;
    private String avatar;
    private String coverUrl;
    private String userNick;
    private String phone;
    private Date birth;
    private String password;
    private String email;
    private String description;
    private Integer enable;
    private String lastLoginIp;
    private Integer loginCount;
    private Integer vip;
    private Integer isAdmin;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

}
